//
//  UIView+Mask.h
//  Whatnet_iOS
//
//  Created by 北辰 on 2019/4/24.
//  Copyright © 2019 什么网络. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (Mask)
/**
 设置左上角和右上角的圆角
 
 @param cornerR 圆角半径
 */
- (void)cornerTopLeftAndTopRight:(CGFloat)cornerR byRoundingCorners:(UIRectCorner)corners;

//添加背景渐变  horizontal:水平渐变 还是垂直渐变
- (void)addGradientLayerStartColor:(NSInteger)startColor endColor:(NSInteger)endColor horizontal:(BOOL)horizontal;
//添加背景渐变  horizontal:水平渐变 还是垂直渐变 alpha渐变的透明度
- (void)addGradientLayerStartColor:(NSInteger)startColor endColor:(NSInteger)endColor horizontal:(BOOL)horizontal alpha:(CGFloat)alpha;

-(void)removeAllSubViews;
@end

NS_ASSUME_NONNULL_END
